3.638 \(\int \frac {(d f+e f x)^4}{a+b (d+e x)^2+c (d+e x)^4} \, dx\)

Optimal. Leaf size=202 \[ -\frac {f^4 \left (b-\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{3/2} e \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {f^4 \left (\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}+b\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {\sqrt {b^2-4 a c}+b}}\right )}{\sqrt {2} c^{3/2} e \sqrt {\sqrt {b^2-4 a c}+b}}+\frac {f^4 x}{c} \]

[Out]

f^4*x/c-1/2*f^4*arctan((e*x+d)*2^(1/2)*c^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2))*(b+(2*a*c-b^2)/(-4*a*c+b^2)^(1/2)
)/c^(3/2)/e*2^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2)-1/2*f^4*arctan((e*x+d)*2^(1/2)*c^(1/2)/(b+(-4*a*c+b^2)^(1/2))
^(1/2))*(b+(-2*a*c+b^2)/(-4*a*c+b^2)^(1/2))/c^(3/2)/e*2^(1/2)/(b+(-4*a*c+b^2)^(1/2))^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.36, antiderivative size = 202, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.121, Rules used = {1142, 1122, 1166, 205} \[ -\frac {f^4 \left (b-\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{3/2} e \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {f^4 \left (\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}+b\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {\sqrt {b^2-4 a c}+b}}\right )}{\sqrt {2} c^{3/2} e \sqrt {\sqrt {b^2-4 a c}+b}}+\frac {f^4 x}{c} \]

Antiderivative was successfully verified.

[In]

Int[(d*f + e*f*x)^4/(a + b*(d + e*x)^2 + c*(d + e*x)^4),x]

[Out]

(f^4*x)/c - ((b - (b^2 - 2*a*c)/Sqrt[b^2 - 4*a*c])*f^4*ArcTan[(Sqrt[2]*Sqrt[c]*(d + e*x))/Sqrt[b - Sqrt[b^2 -
4*a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b - Sqrt[b^2 - 4*a*c]]*e) - ((b + (b^2 - 2*a*c)/Sqrt[b^2 - 4*a*c])*f^4*ArcTan[
(Sqrt[2]*Sqrt[c]*(d + e*x))/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*c^(3/2)*Sqrt[b + Sqrt[b^2 - 4*a*c]]*e)

Rule 205

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]*ArcTan[x/Rt[a/b, 2]])/a, x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 1122

Int[((d_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Simp[(d^3*(d*x)^(m - 3)*(a + b*
x^2 + c*x^4)^(p + 1))/(c*(m + 4*p + 1)), x] - Dist[d^4/(c*(m + 4*p + 1)), Int[(d*x)^(m - 4)*Simp[a*(m - 3) + b
*(m + 2*p - 1)*x^2, x]*(a + b*x^2 + c*x^4)^p, x], x] /; FreeQ[{a, b, c, d, p}, x] && NeQ[b^2 - 4*a*c, 0] && Gt
Q[m, 3] && NeQ[m + 4*p + 1, 0] && IntegerQ[2*p] && (IntegerQ[p] || IntegerQ[m])

Rule 1142

Int[(u_)^(m_.)*((a_.) + (b_.)*(v_)^2 + (c_.)*(v_)^4)^(p_.), x_Symbol] :> Dist[u^m/(Coefficient[v, x, 1]*v^m),
Subst[Int[x^m*(a + b*x^2 + c*x^(2*2))^p, x], x, v], x] /; FreeQ[{a, b, c, m, p}, x] && LinearPairQ[u, v, x]

Rule 1166

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rubi steps

\begin {align*} \int \frac {(d f+e f x)^4}{a+b (d+e x)^2+c (d+e x)^4} \, dx &=\frac {f^4 \operatorname {Subst}\left (\int \frac {x^4}{a+b x^2+c x^4} \, dx,x,d+e x\right )}{e}\\ &=\frac {f^4 x}{c}-\frac {f^4 \operatorname {Subst}\left (\int \frac {a+b x^2}{a+b x^2+c x^4} \, dx,x,d+e x\right )}{c e}\\ &=\frac {f^4 x}{c}-\frac {\left (\left (b-\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right ) f^4\right ) \operatorname {Subst}\left (\int \frac {1}{\frac {b}{2}-\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx,x,d+e x\right )}{2 c e}-\frac {\left (\left (b+\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right ) f^4\right ) \operatorname {Subst}\left (\int \frac {1}{\frac {b}{2}+\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx,x,d+e x\right )}{2 c e}\\ &=\frac {f^4 x}{c}-\frac {\left (b-\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right ) f^4 \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{3/2} \sqrt {b-\sqrt {b^2-4 a c}} e}-\frac {\left (b+\frac {b^2-2 a c}{\sqrt {b^2-4 a c}}\right ) f^4 \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} c^{3/2} \sqrt {b+\sqrt {b^2-4 a c}} e}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 222, normalized size = 1.10 \[ \frac {f^4 \left (-\frac {\sqrt {2} \left (b \sqrt {b^2-4 a c}+2 a c-b^2\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {b^2-4 a c} \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {\sqrt {2} \left (b \sqrt {b^2-4 a c}-2 a c+b^2\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} (d+e x)}{\sqrt {\sqrt {b^2-4 a c}+b}}\right )}{\sqrt {b^2-4 a c} \sqrt {\sqrt {b^2-4 a c}+b}}+2 \sqrt {c} (d+e x)\right )}{2 c^{3/2} e} \]

Antiderivative was successfully verified.

[In]

Integrate[(d*f + e*f*x)^4/(a + b*(d + e*x)^2 + c*(d + e*x)^4),x]

[Out]

(f^4*(2*Sqrt[c]*(d + e*x) - (Sqrt[2]*(-b^2 + 2*a*c + b*Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*(d + e*x))/S
qrt[b - Sqrt[b^2 - 4*a*c]]])/(Sqrt[b^2 - 4*a*c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) - (Sqrt[2]*(b^2 - 2*a*c + b*Sqrt[
b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*(d + e*x))/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(Sqrt[b^2 - 4*a*c]*Sqrt[b + Sqr
t[b^2 - 4*a*c]])))/(2*c^(3/2)*e)

________________________________________________________________________________________

fricas [B]  time = 0.89, size = 1346, normalized size = 6.66 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*f*x+d*f)^4/(a+b*(e*x+d)^2+c*(e*x+d)^4),x, algorithm="fricas")

[Out]

1/2*(2*f^4*x - sqrt(1/2)*c*sqrt(-((b^3 - 3*a*b*c)*f^8 + sqrt((b^4 - 2*a*b^2*c + a^2*c^2)*f^16/((b^2*c^6 - 4*a*
c^7)*e^4))*(b^2*c^3 - 4*a*c^4)*e^2)/((b^2*c^3 - 4*a*c^4)*e^2))*log(-2*(a*b^2 - a^2*c)*e*f^12*x - 2*(a*b^2 - a^
2*c)*d*f^12 + sqrt(1/2)*((b^4 - 5*a*b^2*c + 4*a^2*c^2)*e*f^8 - sqrt((b^4 - 2*a*b^2*c + a^2*c^2)*f^16/((b^2*c^6
 - 4*a*c^7)*e^4))*(b^3*c^3 - 4*a*b*c^4)*e^3)*sqrt(-((b^3 - 3*a*b*c)*f^8 + sqrt((b^4 - 2*a*b^2*c + a^2*c^2)*f^1
6/((b^2*c^6 - 4*a*c^7)*e^4))*(b^2*c^3 - 4*a*c^4)*e^2)/((b^2*c^3 - 4*a*c^4)*e^2))) + sqrt(1/2)*c*sqrt(-((b^3 -
3*a*b*c)*f^8 + sqrt((b^4 - 2*a*b^2*c + a^2*c^2)*f^16/((b^2*c^6 - 4*a*c^7)*e^4))*(b^2*c^3 - 4*a*c^4)*e^2)/((b^2
*c^3 - 4*a*c^4)*e^2))*log(-2*(a*b^2 - a^2*c)*e*f^12*x - 2*(a*b^2 - a^2*c)*d*f^12 - sqrt(1/2)*((b^4 - 5*a*b^2*c
 + 4*a^2*c^2)*e*f^8 - sqrt((b^4 - 2*a*b^2*c + a^2*c^2)*f^16/((b^2*c^6 - 4*a*c^7)*e^4))*(b^3*c^3 - 4*a*b*c^4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*c^6 -
 4*a*c^7)*e^4))*(b^2*c^3 - 4*a*c^4)*e^2)/((b^2*c^3 - 4*a*c^4)*e^2))))/c

________________________________________________________________________________________

giac [B]  time = 0.54, size = 1245, normalized size = 6.16 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*f*x+d*f)^4/(a+b*(e*x+d)^2+c*(e*x+d)^4),x, algorithm="giac")

[Out]

f^4*x/c + 1/2*(((d*e^(-1) + sqrt(1/2)*sqrt(-(b*e^2 + sqrt(b^2 - 4*a*c)*e^2)*e^(-4)/c))^2*b*f^4*e^6 - 2*(d*e^(-
1) + sqrt(1/2)*sqrt(-(b*e^2 + sqrt(b^2 - 4*a*c)*e^2)*e^(-4)/c))*b*d*f^4*e^5 + b*d^2*f^4*e^4 + a*f^4*e^4)*log(d
*e^(-1) + x + sqrt(1/2)*sqrt(-(b*e^2 + sqrt(b^2 - 4*a*c)*e^2)*e^(-4)/c))/(2*(d*e^(-1) + sqrt(1/2)*sqrt(-(b*e^2
 + sqrt(b^2 - 4*a*c)*e^2)*e^(-4)/c))^3*c*e^4 - 6*(d*e^(-1) + sqrt(1/2)*sqrt(-(b*e^2 + sqrt(b^2 - 4*a*c)*e^2)*e
^(-4)/c))^2*c*d*e^3 - 2*c*d^3*e - b*d*e + (6*c*d^2*e^2 + b*e^2)*(d*e^(-1) + sqrt(1/2)*sqrt(-(b*e^2 + sqrt(b^2
- 4*a*c)*e^2)*e^(-4)/c))) + ((d*e^(-1) - sqrt(1/2)*sqrt(-(b*e^2 + sqrt(b^2 - 4*a*c)*e^2)*e^(-4)/c))^2*b*f^4*e^
6 - 2*(d*e^(-1) - sqrt(1/2)*sqrt(-(b*e^2 + sqrt(b^2 - 4*a*c)*e^2)*e^(-4)/c))*b*d*f^4*e^5 + b*d^2*f^4*e^4 + a*f
^4*e^4)*log(d*e^(-1) + x - sqrt(1/2)*sqrt(-(b*e^2 + sqrt(b^2 - 4*a*c)*e^2)*e^(-4)/c))/(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 - sqrt(b^2 - 4*a*c)*e^2)*e^(-4)/c)
)/(2*(d*e^(-1) - sqrt(1/2)*sqrt(-(b*e^2 - sqrt(b^2 - 4*a*c)*e^2)*e^(-4)/c))^3*c*e^4 - 6*(d*e^(-1) - sqrt(1/2)*
sqrt(-(b*e^2 - sqrt(b^2 - 4*a*c)*e^2)*e^(-4)/c))^2*c*d*e^3 - 2*c*d^3*e - b*d*e + (6*c*d^2*e^2 + b*e^2)*(d*e^(-
1) - sqrt(1/2)*sqrt(-(b*e^2 - sqrt(b^2 - 4*a*c)*e^2)*e^(-4)/c))))*e^(-4)/c

________________________________________________________________________________________

maple [C]  time = 0.00, size = 164, normalized size = 0.81 \[ \frac {f^{4} x}{c}+\frac {f^{4} \left (-\RootOf \left (\textit {\_Z}^{4} c \,e^{4}+4 \textit {\_Z}^{3} c d \,e^{3}+c \,d^{4}+b \,d^{2}+\left (6 c \,d^{2} e^{2}+b \,e^{2}\right ) \textit {\_Z}^{2}+\left (4 c \,d^{3} e +2 d e b \right ) \textit {\_Z} +a \right )^{2} b \,e^{2}-2 \RootOf \left (\textit {\_Z}^{4} c \,e^{4}+4 \textit {\_Z}^{3} c d \,e^{3}+c \,d^{4}+b \,d^{2}+\left (6 c \,d^{2} e^{2}+b \,e^{2}\right ) \textit {\_Z}^{2}+\left (4 c \,d^{3} e +2 d e b \right ) \textit {\_Z} +a \right ) b d e -b \,d^{2}-a \right ) \ln \left (-\RootOf \left (\textit {\_Z}^{4} c \,e^{4}+4 \textit {\_Z}^{3} c d \,e^{3}+c \,d^{4}+b \,d^{2}+\left (6 c \,d^{2} e^{2}+b \,e^{2}\right ) \textit {\_Z}^{2}+\left (4 c \,d^{3} e +2 d e b \right ) \textit {\_Z} +a \right )+x \right )}{2 c e \left (2 c \,e^{3} \RootOf \left (\textit {\_Z}^{4} c \,e^{4}+4 \textit {\_Z}^{3} c d \,e^{3}+c \,d^{4}+b \,d^{2}+\left (6 c \,d^{2} e^{2}+b \,e^{2}\right ) \textit {\_Z}^{2}+\left (4 c \,d^{3} e +2 d e b \right ) \textit {\_Z} +a \right )^{3}+6 c d \,e^{2} \RootOf \left (\textit {\_Z}^{4} c \,e^{4}+4 \textit {\_Z}^{3} c d \,e^{3}+c \,d^{4}+b \,d^{2}+\left (6 c \,d^{2} e^{2}+b \,e^{2}\right ) \textit {\_Z}^{2}+\left (4 c \,d^{3} e +2 d e b \right ) \textit {\_Z} +a \right )^{2}+6 e c \,d^{2} \RootOf \left (\textit {\_Z}^{4} c \,e^{4}+4 \textit {\_Z}^{3} c d \,e^{3}+c \,d^{4}+b \,d^{2}+\left (6 c \,d^{2} e^{2}+b \,e^{2}\right ) \textit {\_Z}^{2}+\left (4 c \,d^{3} e +2 d e b \right ) \textit {\_Z} +a \right )+2 c \,d^{3}+b e \RootOf \left (\textit {\_Z}^{4} c \,e^{4}+4 \textit {\_Z}^{3} c d \,e^{3}+c \,d^{4}+b \,d^{2}+\left (6 c \,d^{2} e^{2}+b \,e^{2}\right ) \textit {\_Z}^{2}+\left (4 c \,d^{3} e +2 d e b \right ) \textit {\_Z} +a \right )+b d \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*f*x+d*f)^4/(a+b*(e*x+d)^2+c*(e*x+d)^4),x)

[Out]

f^4*x/c+1/2*f^4/c/e*sum((-_R^2*b*e^2-2*_R*b*d*e-b*d^2-a)/(2*_R^3*c*e^3+6*_R^2*c*d*e^2+6*_R*c*d^2*e+2*c*d^3+_R*
b*e+b*d)*ln(-_R+x),_R=RootOf(_Z^4*c*e^4+4*_Z^3*c*d*e^3+c*d^4+b*d^2+(6*c*d^2*e^2+b*e^2)*_Z^2+(4*c*d^3*e+2*b*d*e
)*_Z+a))

________________________________________________________________________________________

maxima [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*f*x+d*f)^4/(a+b*(e*x+d)^2+c*(e*x+d)^4),x, algorithm="maxima")

[Out]

Timed out

________________________________________________________________________________________

mupad [B]  time = 1.34, size = 4605, normalized size = 22.80 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d*f + e*f*x)^4/(a + b*(d + e*x)^2 + c*(d + e*x)^4),x)

[Out]

atan((((2*b^4*d*e^11*f^8 + 4*a^2*c^2*d*e^11*f^8 - 8*a*b^2*c*d*e^11*f^8)/c + ((16*a^2*c^3*e^12*f^4 - 4*a*b^2*c^
2*e^12*f^4)/c + ((8*b^3*c^3*d*e^13 - 32*a*b*c^4*d*e^13)/c + (2*x*(4*b^3*c^3*e^14 - 16*a*b*c^4*e^14))/c)*(-(b^5
*f^8 + b^2*f^8*(-(4*a*c - b^2)^3)^(1/2) + 12*a^2*b*c^2*f^8 - 7*a*b^3*c*f^8 - a*c*f^8*(-(4*a*c - b^2)^3)^(1/2))
/(8*(16*a^2*c^5*e^2 + b^4*c^3*e^2 - 8*a*b^2*c^4*e^2)))^(1/2))*(-(b^5*f^8 + b^2*f^8*(-(4*a*c - b^2)^3)^(1/2) +
12*a^2*b*c^2*f^8 - 7*a*b^3*c*f^8 - a*c*f^8*(-(4*a*c - b^2)^3)^(1/2))/(8*(16*a^2*c^5*e^2 + b^4*c^3*e^2 - 8*a*b^
2*c^4*e^2)))^(1/2) + (2*x*(b^4*e^12*f^8 + 2*a^2*c^2*e^12*f^8 - 4*a*b^2*c*e^12*f^8))/c)*(-(b^5*f^8 + b^2*f^8*(-
(4*a*c - b^2)^3)^(1/2) + 12*a^2*b*c^2*f^8 - 7*a*b^3*c*f^8 - a*c*f^8*(-(4*a*c - b^2)^3)^(1/2))/(8*(16*a^2*c^5*e
^2 + b^4*c^3*e^2 - 8*a*b^2*c^4*e^2)))^(1/2)*1i + ((2*b^4*d*e^11*f^8 + 4*a^2*c^2*d*e^11*f^8 - 8*a*b^2*c*d*e^11*
f^8)/c - ((16*a^2*c^3*e^12*f^4 - 4*a*b^2*c^2*e^12*f^4)/c - ((8*b^3*c^3*d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1/2) + (2*x*(b^4*e^12*f^8 + 2*a^
2*c^2*e^12*f^8 - 4*a*b^2*c*e^12*f^8))/c)*(-(b^5*f^8 - b^2*f^8*(-(4*a*c - b^2)^3)^(1/2) + 12*a^2*b*c^2*f^8 - 7*
a*b^3*c*f^8 + a*c*f^8*(-(4*a*c - b^2)^3)^(1/2))/(8*(16*a^2*c^5*e^2 + b^4*c^3*e^2 - 8*a*b^2*c^4*e^2)))^(1/2) +
(2*a^2*b*e^10*f^12)/c))*(-(b^5*f^8 - b^2*f^8*(-(4*a*c - b^2)^3)^(1/2) + 12*a^2*b*c^2*f^8 - 7*a*b^3*c*f^8 + a*c
*f^8*(-(4*a*c - b^2)^3)^(1/2))/(8*(16*a^2*c^5*e^2 + b^4*c^3*e^2 - 8*a*b^2*c^4*e^2)))^(1/2)*2i + (f^4*x)/c

________________________________________________________________________________________

sympy [A]  time = 3.62, size = 219, normalized size = 1.08 \[ \operatorname {RootSum} {\left (t^{4} \left (256 a^{2} c^{5} e^{4} - 128 a b^{2} c^{4} e^{4} + 16 b^{4} c^{3} e^{4}\right ) + t^{2} \left (48 a^{2} b c^{2} e^{2} f^{8} - 28 a b^{3} c e^{2} f^{8} + 4 b^{5} e^{2} f^{8}\right ) + a^{3} f^{16}, \left (t \mapsto t \log {\left (x + \frac {32 t^{3} a b c^{4} e^{3} - 8 t^{3} b^{3} c^{3} e^{3} - 4 t a^{2} c^{2} e f^{8} + 8 t a b^{2} c e f^{8} - 2 t b^{4} e f^{8} + a^{2} c d f^{12} - a b^{2} d f^{12}}{a^{2} c e f^{12} - a b^{2} e f^{12}} \right )} \right )\right )} + \frac {f^{4} x}{c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*f*x+d*f)**4/(a+b*(e*x+d)**2+c*(e*x+d)**4),x)

[Out]

RootSum(_t**4*(256*a**2*c**5*e**4 - 128*a*b**2*c**4*e**4 + 16*b**4*c**3*e**4) + _t**2*(48*a**2*b*c**2*e**2*f**
8 - 28*a*b**3*c*e**2*f**8 + 4*b**5*e**2*f**8) + a**3*f**16, Lambda(_t, _t*log(x + (32*_t**3*a*b*c**4*e**3 - 8*
_t**3*b**3*c**3*e**3 - 4*_t*a**2*c**2*e*f**8 + 8*_t*a*b**2*c*e*f**8 - 2*_t*b**4*e*f**8 + a**2*c*d*f**12 - a*b*
*2*d*f**12)/(a**2*c*e*f**12 - a*b**2*e*f**12)))) + f**4*x/c

________________________________________________________________________________________